Code to check Check whether a year is leap year or not

121

<?php
    $year = 2022;
    if($year % 4 == 0) {
      echo $year." is a leap year";
    }
    else {
      echo $year." is a not leap year";
    }
  ?>

Comments

Submit
0 Comments